#!/usr/bin/env node

const Koa = require('koa');
const app = new Koa();


//这里就相当于中间件
app.use((ctx,next) => {
  ctx.body = 'hello world!';
  //这个body是响应体
});


app.listen(3000);
console.log('hello world');
